#pragma once 
#include <d3d9.h>
bool d3d9Initial(HINSTANCE hInstance, WNDPROC WndProc, int width, int height
	, bool fullscreen, D3DDEVTYPE DeviceType, IDirect3DDevice9 ** device);
HWND d3d9CreateWindow(HINSTANCE hInstance, WNDPROC WndProc, int width, int height, bool fullscreen);
int d3d9CheckHardwarevp(IDirect3D9* d3d9, D3DDEVTYPE devicetype);
D3DPRESENT_PARAMETERS d3d9CreatePP(HWND hWnd, int Width, int height, bool fullscreen);
bool d3d9CreateDevice(IDirect3D9 *d3d9, D3DDEVTYPE devicetype,
	HWND hWnd, int vp, D3DPRESENT_PARAMETERS d3dpp, IDirect3DDevice9 **device);
int d3d9MessageLoop(bool(*p_Display)(float time, IDirect3DDevice9*Device), IDirect3DDevice9*device);
